const router = require('express').Router();

router.get('/home', (req,res) => {
  const arr = ['秃驴', '猢狲', '猪妖', '河妖'];
  const sign = '不要哭，皇冠会掉';
  const num = 10;
  const content = `
    <h1 style="color:red;text-align:center">我是标题</h1>
  `
  res.render('home', {
    arr,
    sign,
    num,
    content
  })
})
router.post('/home', (req,res)=> {
  res.send('home页post')
})


module.exports = router;